directorylist: Fix several issues
authorMatthias Clasen <mclasen@redhat.com>
Wed, 12 Jan 2022 02:35:19 +0000 (21:35 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Wed, 12 Jan 2022 02:35:19 +0000 (21:35 -0500)
commitdcdcc659ef0b4640bd53e407f8bf880235c116b5
treea6acc03f30fb52b8a5eae8c8a24964874227e4bc
parentfef179b625689dd781f5ef9160854c1a76fa189b
directorylist: Fix several issues

We were handling events in the wrong order,
by doing async calls for some of them, but not
for all of them.

And we were not taking into account that GFileMonitors
RENAMED events may or may not move a file on top
of an existing file.

Fixes: #3784
gtk/gtkdirectorylist.c